Skip to content

Add CLI command handler tests for hook, ingest, and archive#116

Merged
gvonness-apolitical merged 2 commits intomainfrom
cleanup/cli-tests
Feb 17, 2026
Merged

Add CLI command handler tests for hook, ingest, and archive#116
gvonness-apolitical merged 2 commits intomainfrom
cleanup/cli-tests

Conversation

@gvonness-apolitical
Copy link
Contributor

Summary

  • Add 35 new tests across 3 files covering previously untested CLI command handlers
  • hook.test.ts (12 tests): session-start, pre-compact, session-end, claudemd-generator dispatch, arg handling, error paths, JSON output format
  • ingest.test.ts (6 tests): ingest and batch-ingest arg parsing, delegation, and error paths
  • archive.test.ts (17 tests): export/import flag parsing, encryption password handling, dry-run, merge, project filtering, output formatting

Test plan

  • npm test passes — 1742 tests (was 1707, +35 new)
  • npm run build passes
  • npm run lint passes
  • New tests only, no production code changes

Add 35 new tests across 3 files:
- hook.test.ts: session-start, pre-compact, session-end, claudemd-generator
  dispatch, arg handling, error paths, JSON output format
- ingest.test.ts: ingest and batch-ingest arg parsing and error paths
- archive.test.ts: export/import flag parsing, encryption password handling,
  dry-run, merge, project filtering, output formatting
@gvonness-apolitical gvonness-apolitical merged commit cf613f3 into main Feb 17, 2026
3 checks passed
@gvonness-apolitical gvonness-apolitical deleted the cleanup/cli-tests branch February 17, 2026 00:09
@gvonness-apolitical gvonness-apolitical mentioned this pull request Feb 17, 2026
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant